Datepart example



DatePart('m',[OrderDate])
(where [OrderDate] is the name of the field).

[OrderDate]=28-Mar-1996

Result = 3 (month of year)


2nd Opinion copyright © 1997 by McAfee Associates.
Subject to the terms set forth in the end-user license agreement. All rights reserved.